<template>
  <el-container>
      <div style="display: inline">
        <el-input
          placeholder="输入姓名"
          :prop="name"
          prefix-icon="el-icon-search"
          style="width: 300px;margin: 0px;padding: 0px;"
          v-model="name">
        </el-input>

        <el-input
          placeholder="输入进入会诊房间"
          prefix-icon="el-icon-search"
          :prop="id"
          style="width: 300px;margin: 0px;padding: 0px;"
          v-model="id">
        </el-input>
        <el-button type="primary" size="mini" style="margin-left: 5px" icon="el-icon-search" @click="teleDignosis">进入会诊
        </el-button>
      </div>
  </el-container>
</template>
<script>
  import $ from 'jquery'

  export default {
    methods: {
      teleDignosis() {
        var dto = {
          id: $('#id').val(),
          fname: $('#name').val(),
        }
        $.post('/op/addToRoom', dto, function(data) {
          window.location.href = 'http://localhost:5080/openmeetings/hash?secure=' + data.message
        }, 'json')
        console(data)

      }
    }
  }
</script>
